#include <stdio.h>
#include <stdlib.h>

#include "addr.h"

int main()
{
	Addr *a[1024];
	int N = 100;
	int i;

	for(i = 0; i < N; ++i) {
		a[i] = addr_new();
		printf("%s\n", addr_get_str(a[i]));
		addr_set(a[i], "192.168.0.1", rand(), rand());
	}
	for(i = 0; i < N; ++i) {
		printf("%s\n", addr_get_str(a[i]));
		addr_delete(&a[i]);
	}

	return 0;
}
